const router = require('koa-router')()
const nba = require('./nba')
const login = require('./login')

/**
 * 静默路由
 */
const defaultRouter = router.get('/', function (ctx, next) {
    ctx.body = 'this is default route'
})

module.exports = (app) => {
    app.use(defaultRouter.routes())
        .use(nba.routes()).use(nba.allowedMethods())
        .use(login.routes()).use(login.allowedMethods())
}
